package com.example.demo.repository;

import com.example.demo.domain.Picture;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PictureMapper {

    //查询
    Picture getPictureById(Integer id);
    List<Picture> getPictureListByGid(Integer gid);
    //添加
    void addPicture(Picture picture);
    //删除
    void delPictureById(Integer id);
    //修改
    void savePicture(Picture picture);

}
